#ifndef GENERATEDATATHREAD_H
#define GENERATEDATATHREAD_H

#include <QSemaphore>
#include <QTimer>
#include <QThread>

class GenerateDataThread : public QThread
{
    Q_OBJECT
public:
    GenerateDataThread(QSemaphore* semaphore, QObject* parent = Q_NULLPTR);

    ~GenerateDataThread();

    void run();

    void generateData();

private:
    QTimer* m_timer;

    QSemaphore* m_semaphore;

};

#endif // GENERATEDATATHREAD_H
